﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using QLTV_BLL;
using QLTV_Public;

namespace QLTV_GiaoDien
{
    public partial class frm_Muon_PhieuMuon : DevExpress.XtraEditors.XtraForm
    {
        public frm_Muon_PhieuMuon()
        {
            InitializeComponent();
        }
        TaiLieu_BLL tl = new TaiLieu_BLL();
        private void frm_Muon_PhieuMuon_Load(object sender, EventArgs e)
        {
            string sql = "select * from tbl_PhieuMuon where not exists (select MaPhieuMuon from tbl_MuonTra where  tbl_PhieuMuon.MaPhieuMuon=tbl_MuonTra.MaPhieuMuon)";
            DataTable dt = new DataTable();
            dt = tl.taoBang(sql);
            gridControl1.DataSource = dt;
        }
    }
}